package test;

/**
 * @author Sven
 * @date 3/11/21
 */
public class Result<T> {

    private  T data;
    private boolean success;
    private String msg;
    private String code;






    // -----  inner method  -----


    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
